package com.jw.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 合同表
 * </p>
 *
 * @author jw
 * @since 2021-04-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Contract对象", description="合同表")
public class Contract implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "员工ID")
    private Long userId;

    @ApiModelProperty(value = "客户ID")
    private Long cusId;

    @ApiModelProperty(value = "签订日期")
    private Date date;

    @ApiModelProperty(value = "pdf")
    private String file;

    @ApiModelProperty(value = "完成状态 -1待审核 0未开始 1进行中 2已完成")
    private Integer staus;

    @ApiModelProperty(value = "完成日期")
    private Date finishDate;

    @ApiModelProperty(value = "完成期限")
    private Date deadline;

    @ApiModelProperty(value = "收货人联系电话")
    private String phone;

    @ApiModelProperty(value = "收货地址")
    private String address;

    @ApiModelProperty(value = "收货人姓名")
    private String name;

    @ApiModelProperty(value = "合同编号")
    private String conNum;

    @ApiModelProperty(value = "销售助理ID")
    private Long salesmanId;

    @ApiModelProperty(value = "销售主管ID")
    private Long auditorId;

    @ApiModelProperty(value = "合同总金额")
    private Integer price;

}
/*
函数名(表名,列名){
    if(表名==xx){
        QueryWrapper<表对应的实体类> queryWrapper = new QueryWrapper<>();
        queryWrapper.select(列名)
        return 对应实体类的Mapper.selectList(queryWrapper)
    }
    else if(表名==yy){
        QueryWrapper<表对应的实体类> queryWrapper = new QueryWrapper<>();
        queryWrapper.select(列名)
        return 对应实体类的Mapper.selectList(queryWrapper)
    }
    else if(表名==jj){
        QueryWrapper<表对应的实体类> queryWrapper = new QueryWrapper<>();
        queryWrapper.select(列名)
        return 对应实体类的Mapper.selectList(queryWrapper)
    }
    ...
    else{
        QueryWrapper<表对应的实体类> queryWrapper = new QueryWrapper<>();
        queryWrapper.select(列名)
        return 对应实体类的Mapper.selectList(queryWrapper)
    }

}

 */
